package com.sxdx.controller;

import com.sxdx.common.Result;
import com.sxdx.entity.Book;
import com.sxdx.service.IBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;

/**
 * BookController
 *
 * @author mjx
 * @date 2023-12-21
 */
@RestController
@RequestMapping("/sxdx/book")
public class BookController
{
    @Autowired
    private IBookService ibookService;


    /*
      *查看图书详细信息
     */
    @GetMapping("/selectBookDetailById")
    public Result selectBookDetailById(Book book){
        return ibookService.selectBookDetailById(book);
    }


}
